from flask import Blueprint, request, jsonify
from apps.interface.business.interfacecaserelation import InterfaceCaseRelationBusiness

interfacecaserelation = Blueprint('interfacecaserelation', __name__)


# @interfacecaserelation.route('/casere/del/', methods=['POST'])
# def del_case():
#     """
#     @api {post} /v1/interface/case/relation/case/del_用例下删除关联用例
#     @apiName
#     @apiGroup Interface
#     {
#
#     }
#     @apiSuccessExample {json} Success-Response:
#      HTTP/1.1 200 OK
#     {
#         "case_id": 87,
#         "status": 1,
#         "msg":"删除成功"
#     }
#     """
#     data = request.json
#     if data.get('type') != 'action':
#         return jsonify({'status': 0, 'msg': '删除类型非用例类型'})
#     relation_id = data.get('id')
#     status, msg = InterfaceCaseRelationBusiness.del_case(relation_id)
#
#     return jsonify({'status': status, 'msg': msg})
